<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="avicit.platform6.core.locale.PlatformLocalesJSTL"%>
<%@page import="java.util.Locale"%>
<%@page import="avicit.platform6.api.session.SessionHelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="sec"
	uri="/WEB-INF/tags/shiro.tld"%>
<html>
<head>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>属性</title>
<base href="<%=ViewUtil.getRequestPath(request)%>">
<%@page import="avicit.platform6.api.sysshirolog.impl.AfterLoginSessionProcess"%>
<link href="static/css/custom/lantop/css/custom.css" type="text/css"  rel="stylesheet">
<% 
Object lang=session.getAttribute(AfterLoginSessionProcess.SESSION_CURRENT_LANGUAGE_CODE);
String languageCode="zh_CN";
if(lang!=null){
	languageCode=lang.toString();
}
	Locale locale =SessionHelper.getLocaleByUser(request);
%>
<jsp:include
	page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>	
<script type="text/javascript"
	src="avicit/im/lantop/basic/libstructuredefine/LantopArchiveClassAttribute.js"></script>
<script type="text/javascript"
	src="avicit/im/lantop/basic/libstructuredefine/locale/language_<%=languageCode%>.js"></script>
<script type="text/javascript">
	var baseurl = '<%=request.getContextPath()%>';
	var dialogId = "${dialogId}"; //当前对话框的ID
	var nodeType = "${nodeType}";

	$(function() {
		if(nodeType=="N"){
			document.getElementById("returnButton").style.display="none";
		}
		
		$("#folder").attr("disabled","disabled");
		$("#template").attr("disabled","disabled");
		
		//模板库点击事件
		$("#selectTemp").combobox("disable");
		$("#tableLayer").combobox("disable");
		
	});
	
	$.extend($.fn.validatebox.defaults.rules, {
		xy: {
	        validator: function(value,param){
	        	var jiedianName = $("#archiveClassNodeName").val();
	        	var regEn = /[`~!@$%^&*()+<>?:"{},.\;'[\]]/im,
	            regCn = /[·！￥：；“”‘，|《。》？\\\\【】[\]]/im;
	        	if(regEn.test(jiedianName) || regCn.test(jiedianName)) {
	        		return false;
	        	}else{
	        		return true;
	        	}   
	        },    
	        message: '名称不能含有特殊字符'  
	    }
	});

	$(window).resize(function(){
		setTimeout(function(){
			$("#mybox").layout('resize',{
				width:$(window).width(),
				height:$(window).height(),
			});
		},300)
	})
</script>
<style type="text/css">
	table input[type="text"]{
		width: 100%;
	    background: white;
	    border: 1px solid #dedede;
	    border-radius: 3px;
	    height: 23px !important;
	    line-height: 23px;
	    padding-left: 10px;
	    box-sizing:border-box;
	}
	
</style>
</head>
<body id="mybox" class="easyui-layout" fit="true">
	<div region="center" border="false" style="height: 0; border: false;">
		<form id="formDetail" method="post">
			<table class="" style="border-collapse:separate; border-spacing:0px 10px;width:70%;margin-left: 10%;margin-top:30px;">
				<tr>
				<sec:accesscontrollist hasPermission="3" domainObject="formdialog_LantopArchiveClassAttribute_archiveClassNodeCode">
					<%-- 名称 --%>
					<td width="10%" align="right"><span class="remind" style="color:red;">*</span><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.archiveClassNodeName","i18n.lantop",locale)%></td>
					<td width="40%" colspan="3">
						<input class="easyui-validatebox" type="text" value="${lantopArchiveClass.archiveClassNodeName}"
							id="archiveClassNodeName" name="archiveClassNodeName" validType="xy[0,200]" style="width:100%;height:26px;"
							data-options="required:true,validType:'length[1,100]'"></input>
					</td>
				</sec:accesscontrollist>
				</tr>
				<tr>
				<sec:accesscontrollist hasPermission="3" domainObject="formdialog_LantopArchiveClassAttribute_archiveClassNodeName">
					<%-- 标识 --%>
					<td width="10%" align="right"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.archiveClassNodeCode","i18n.lantop",locale)%></td>
					<td width="40%" colspan="3" class="input-readonly">
						<input class="easyui-validatebox disabled" type="text" value="${lantopArchiveClass.archiveClassNodeCode}"
								id="archiveClassNodeCode" name="archiveClassNodeCode" style="width:100%;height:26px;"
								data-options="required:true,validType:'length[1,100]'" disabled="disabled"></input>
					</td>
				</sec:accesscontrollist>
				</tr>
				<tr class="input-readonly">
					<sec:accesscontrollist hasPermission="3" domainObject="formdialog_LantopArchiveClassAttribute_archiveClassNodeName">
						<td class="input-readonly">
							<span class="block-box">
								<%-- 模板文件夹 --%>
							<lable>
								<input class="radiobox" style="float:left;"  type="radio" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.templateFile","i18n.lantop",locale)%>" id="folder" name="redio" checked=true value="1" disabled="disabled"/>
								<span class="radiobox-text"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.templateFile","i18n.lantop",locale)%></span>
							 </lable>
							</span>
						</td>
					</sec:accesscontrollist>
				</tr>
				<tr>
					<sec:accesscontrollist hasPermission="3"
						domainObject="formdialog_LantopArchiveClassAttribute_archiveClassNodeName">
							<td width="15%" class="input-readonly">
								<span class="block-box">
									<lable>
										<input class="radiobox" style="float:left;" style="width: 10%;" type="radio" id="template" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.templateLibrary","i18n.lantop",locale)%>" name="redio" value="2" disabled="disabled"/> 
										<%-- 模板库 --%>
										<span class="radiobox-text"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.templateLibrary","i18n.lantop",locale)%>：</span>
								 </lable>
								</span>
							</td>
							<td width="20%">
								<select title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.templateLibrary","i18n.lantop",locale)%>"
								editable="false" data-options="panelHeight:'auto',editable:false,onShowPanel:comboboxOnShowPanel"
								class="easyui-combobox" name="selectTemp" id="selectTemp" style="width:100%;height:26px;">
									<c:forEach items="${lanTopArchiveTypeList}"
										var="lanTopArchiveTypeList">
										<option value="${lanTopArchiveTypeList.lookupCode}">${lanTopArchiveTypeList.lookupName}</option>
									</c:forEach>
								</select>
							</td>
							<%-- 库表层层级 --%>
							<td width="15%" align="right"> <%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.storeTableHierarchy","i18n.lantop",locale)%></td>
							<td width="20%">
							 	<select style="width:100%;height:26px;" class="easyui-combobox" id="tableLayer" name="tableLayer" data-options="panelHeight:'auto',editable:false,onShowPanel:comboboxOnShowPanel">
									<option value="1">1</option>
									<option value="2">2</option>
									<option value="3">3</option>
								</select>
							</td>
							
					</sec:accesscontrollist>
				</tr>
				
			</table>
			<input name="archiveType" id="archiveType" style="display: none;" value="${lantopArchiveClass.archiveType}" /> 
			<input name="parentId" id="parentId" style="display: none;" value="${lantopArchiveClass.parentId}" /> 
			<input name="id" id="id" style="display: none;" value="${lantopArchiveClass.id}" />
		</form>
	</div>

	<div id="gridId" align="center"
		style="margin-left: 20px; display: none">
		<iframe id="addGridIframe" name="addGridIframe" height="200px"
			width="90%" frameborder="0" scrolling="no" marginwidth="0"
			marginheight="0"></iframe>
	</div>
	<div data-options="region:'south',border:false" style="height: 100px;">
			<table class="tableForm" width='100%'>
				<tr>
					<sec:accesscontrollist hasPermission="3"
						domainObject="formdialog_LantopArchiveClassAttribute_formAdd_button_backForm">
						<td align="center">
							<%-- 保存 --%>
							<a style="margin:0 20px;" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.save","i18n.lantop",locale)%>" id="saveButton" class="easyui-linkbutton selbtn primary-btn" onclick="saveForm();" href="javascript:void(0);">
							<img src="avicit/im/lantop/common/search/image/icon_tool10_blue.png"/><span class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.save","i18n.lantop",locale)%></span></a>
							<%-- 重置 --%>
							<a style="margin:0 20px;" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.reset","i18n.lantop",locale)%>" id="resetButton" class="easyui-linkbutton selbtn" onclick="resetForm();" href="javascript:void(0);">
							<img src="avicit/im/lantop/common/search/image/icon_tool039_blue.png"/><span class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.reset","i18n.lantop",locale)%></span></a>
							<%-- 返回 --%>
							<a style="margin:0 20px;" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.importStructureData.return","i18n.lantop",locale)%>" id="returnButton" class="easyui-linkbutton  selbtn" onclick="closeForm();" href="javascript:void(0);">
							<img src="avicit/im/lantop/common/search/image/icon_tool42_blue.png"/><span class="selbtc"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.libstructuredefine.structureDefine.table.button.importStructureData.return","i18n.lantop",locale)%></span></a>
							
						</td>
					</sec:accesscontrollist>
				</tr>
			</table>
	</div>
</body>
</html>
